package org.juc.eightlock;



// 两部手机，请问先打印邮件还是短信？
public class PhoneExample2 {
    public static void main(String[] args) {
        Phone phone = new Phone();
        Phone phone1 = new Phone();
        new Thread(()->{phone.sendEmail();},"A").start();
        new Thread(()->{phone1.sendSMS();},"B").start();
    }
}
